function queryParams(params) {
	return {
		titleTypename: $('#titleTypename').val(),
	};
}
$('#reset').click(function() {
		 $('#titleTypename').val(""),
		 $('#TitleType').bootstrapTable('refresh', {url: '../TitleTypeController/findByCondition.action'});  
		 
});

$(function() {

	$("#TitleTypeForm").validate({
		rules: {			
			titleTypename:"required",
			extend1:"required",
	
		},
		errorPlacement: function (label, element) {
            $(element).tooltip('destroy'); /*必需*/
            $(element).attr('title', $(label).text()).tooltip('show'); 
        },
	});
	
	init('TitleType',500,300,"titleTypeid","题目类型");
	
	
     

});